package com.bridgeintelligent.tag.bulkload.service.es;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by JackCheung on 2019/9/16 8:36 PM.
 */
@Data
@Component
public class ESConfig {

    @Value("${extension.es.username:admin}")
    private String username;
    @Value("${extension.es.password:admin_pw}")
    private String password;
    //地址
    @Value("${extension.es.address}")
    private String address;
    //分片
    @Value("${extension.es.index.shards}")
    private int shards;
    //副本
    @Value("${extension.es.index.replicas}")
    private int replicas;
    //最大数窗口
    @Value("${extension.es.index.maxResultWindow}")
    private int maxWindow;
}
